package cn.xy.pojo;

public class Teacher {
    private Integer tid;
    private String tname;
    private Integer cid;

    public Teacher() {
    }

    public Teacher(Integer tid, String tname, Integer cid) {
        this.tid = tid;
        this.tname = tname;
        this.cid = cid;
    }

    public Integer getTid() {
        return tid;
    }

    public void setTid(Integer tid) {
        this.tid = tid;
    }

    public String getTname() {
        return tname;
    }

    public void setTname(String tname) {
        this.tname = tname;
    }

    public Integer getCid() {
        return cid;
    }

    public void setCid(Integer cid) {
        this.cid = cid;
    }

    @Override
    public String toString() {
        return "Teacher{" +
                "tid=" + tid +
                ", tname='" + tname + '\'' +
                ", cid=" + cid +
                '}';
    }
}
